package com.basic.common.utils;

import cn.hutool.crypto.digest.MD5;

/**
 * 汇中MD5加密 类
 */
public class HzMD5Util {

    public static String md5Encrypt(String key, String value) {
        MD5 md5 = new MD5();
        String result = md5.digestHex(value);
        return result;
    }


    public static void main(String[] args) {

       String dataVal =  HzMD5Util.md5Encrypt(null,"qwerty");

       System.out.println("dataVal="+dataVal);
    }
}
